package month4.day5.fly;

public class Bird implements Flight{
    private String type;
    private String sex;

    @Override
    public void fly() {
        System.out.println("扇动翅膀飞行");
    }
    public void show(){
        System.out.println("这是一只"+type+"鸟，性别是"+sex);
    }

    public Bird(String type, String sex) {
        this.type = type;
        this.sex = sex;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
}
